Error Codes
These constants are the possible return values from the get_last_error function, which gives more specific information about any errors that may have occured at runtime.
- 0 - Success.
- -1 - Internal error.
- -2 - One or more invalid parameters in last call.
- -3 - Unable to initialize the audio subsystem.
- -4 - Unable to initialize the keyboard subsystem.
- -5 - File could not be opened for reading.
- -6 - File could not be opened for writing.
- -7 - Trying to load an unencrypted sound with force encryption enabled.
- -8 - Encryption failed.
- -9 - Decryption failed because the key was incorrect.
- -10 - Decryption failed for an unknown reason.
- -11 - No valid resource associated.
- -12 - User chose to cancel.
- -13 - The result was too large.
- -14 - The supplied data could not be converted.
- -15 - File not found.
- -16 - File could not be read from pack file.
- -17 - Out of memory.
- -18 - Cannot go past the end of the file.
- -19 - Invalid operation for this file mode.
- -20 - Operation not supported.
- -21 - No data available to read.
- -22 - No data available to write.
- -23 - Unable to initialize the text to speech subsystem.
- -24 - Illogical operation.
- -25 - Already initialized.
- -26 - No callback function specified.
- -27 - Unable to initialize the network subsystem.
- -28 - No connected peer with this ID was found.
- -29 - HTTP request error.
- -30 - Directory not found.
- -31 - Access denied.
- -32 - Unable to initialize the mouse subsystem.
- -33 - A sound device is already open.
- -34 - Operation failed.
- -35 - File already exists.
- -36 - Unavailable in release builds.
- -37 - Attempting to read badly formatted input.